# -*- coding: utf-8 -*-
# @file    : test.py.py
# @Date    : 2020/10/22
# @Author  :
# @Version : 1.0.0

import unittest

from core.action import ActionGroup
from core.device import Keyboard, Mouse, System


class Test(unittest.TestCase):
    def tearDown(self) -> None:
        pass

    def setUp(self) -> None:
        self.mouse = Mouse()
        self.keyboard = Keyboard()
        self.system = System()

    def test_dev(self):
        self.system.print("Test Device")

    def test_action_group(self):
        act_group = ActionGroup(name='测试', repeat=2, interval=2000, expr="{system[print::hello]}")
        act_group.action[0].exec()
